home *** CD-ROM | disk | FTP | other *** search
/ Planet Source Code Jumbo …e CD Visual Basic 1 to 7 / 1_2002.ISO / Data / Zips / FORMLESS_P3544711152001.psc / Formless Icon RESOURCE Creator / Frms / frmMain.frm (.txt) next >
Encoding:
Visual Basic Form  |  2001-11-14  |  37.8 KB  |  1,034 lines

  1. VERSION 5.00
  2. Begin VB.Form frmMain 
  3.    BorderStyle     =   1  'Fixed Single
  4.    Caption         =   "Formless Prj *.RES Icon Creator"
  5.    ClientHeight    =   10440
  6.    ClientLeft      =   45
  7.    ClientTop       =   435
  8.    ClientWidth     =   12210
  9.    Icon            =   "frmMain.frx":0000
  10.    LinkTopic       =   "Form1"
  11.    MaxButton       =   0   'False
  12.    MinButton       =   0   'False
  13.    ScaleHeight     =   10440
  14.    ScaleWidth      =   12210
  15.    StartUpPosition =   2  'CenterScreen
  16.    Begin VB.Frame fraMain 
  17.       Height          =   5655
  18.       Left            =   143
  19.       TabIndex        =   2
  20.       Top             =   120
  21.       Width           =   11535
  22.       Begin VB.Frame fraWiz 
  23.          Caption         =   "0"
  24.          Height          =   3600
  25.          Index           =   0
  26.          Left            =   3000
  27.          TabIndex        =   4
  28.          Top             =   360
  29.          Width           =   5295
  30.          Begin VB.Label Label1 
  31.             Caption         =   $"frmMain.frx":1D42
  32.             BeginProperty Font 
  33.                Name            =   "MS Sans Serif"
  34.                Size            =   9.75
  35.                Charset         =   0
  36.                Weight          =   400
  37.                Underline       =   0   'False
  38.                Italic          =   0   'False
  39.                Strikethrough   =   0   'False
  40.             EndProperty
  41.             Height          =   2760
  42.             Index           =   1
  43.             Left            =   360
  44.             TabIndex        =   9
  45.             Top             =   720
  46.             Width           =   4635
  47.          End
  48.          Begin VB.Label Label1 
  49.             AutoSize        =   -1  'True
  50.             Caption         =   "INFORMATION:"
  51.             BeginProperty Font 
  52.                Name            =   "MS Sans Serif"
  53.                Size            =   12
  54.                Charset         =   0
  55.                Weight          =   400
  56.                Underline       =   0   'False
  57.                Italic          =   0   'False
  58.                Strikethrough   =   0   'False
  59.             EndProperty
  60.             ForeColor       =   &H000000FF&
  61.             Height          =   300
  62.             Index           =   0
  63.             Left            =   240
  64.             TabIndex        =   8
  65.             Top             =   360
  66.             Width           =   1725
  67.          End
  68.       End
  69.       Begin VB.Frame fraWiz 
  70.          Caption         =   "4"
  71.          Height          =   3650
  72.          Index           =   4
  73.          Left            =   840
  74.          TabIndex        =   21
  75.          Top             =   1440
  76.          Width           =   5295
  77.          Begin prjFormlessWizard.xpcmdbutton cmdPaths 
  78.             Height          =   375
  79.             Index           =   4
  80.             Left            =   4080
  81.             TabIndex        =   31
  82.             Top             =   3240
  83.             Width           =   1095
  84.             _ExtentX        =   1931
  85.             _ExtentY        =   661
  86.             Caption         =   "Create"
  87.             BeginProperty Font {0BE35203-8F91-11CE-9DE3-00AA004BB851} 
  88.                Name            =   "MS Sans Serif"
  89.                Size            =   8.25
  90.                Charset         =   0
  91.                Weight          =   400
  92.                Underline       =   0   'False
  93.                Italic          =   0   'False
  94.                Strikethrough   =   0   'False
  95.             EndProperty
  96.          End
  97.          Begin VB.Label Label1 
  98.             AutoSize        =   -1  'True
  99.             BackStyle       =   0  'Transparent
  100.             Caption         =   "tech@ets4u.com"
  101.             BeginProperty Font 
  102.                Name            =   "MS Sans Serif"
  103.                Size            =   9.75
  104.                Charset         =   0
  105.                Weight          =   400
  106.                Underline       =   0   'False
  107.                Italic          =   0   'False
  108.                Strikethrough   =   0   'False
  109.             EndProperty
  110.             ForeColor       =   &H000000FF&
  111.             Height          =   240
  112.             Index           =   13
  113.             Left            =   1065
  114.             TabIndex        =   33
  115.             Top             =   3105
  116.             Width           =   1500
  117.          End
  118.          Begin VB.Label Label1 
  119.             AutoSize        =   -1  'True
  120.             BackStyle       =   0  'Transparent
  121.             Caption         =   "tech@ets4u.com"
  122.             BeginProperty Font 
  123.                Name            =   "MS Sans Serif"
  124.                Size            =   9.75
  125.                Charset         =   0
  126.                Weight          =   400
  127.                Underline       =   0   'False
  128.                Italic          =   0   'False
  129.                Strikethrough   =   0   'False
  130.             EndProperty
  131.             ForeColor       =   &H00FFFFFF&
  132.             Height          =   240
  133.             Index           =   18
  134.             Left            =   1080
  135.             TabIndex        =   37
  136.             Top             =   3120
  137.             Width           =   1500
  138.          End
  139.          Begin VB.Label Label1 
  140.             AutoSize        =   -1  'True
  141.             BackStyle       =   0  'Transparent
  142.             Caption         =   "Chris Hoffman"
  143.             BeginProperty Font 
  144.                Name            =   "MS Sans Serif"
  145.                Size            =   9.75
  146.                Charset         =   0
  147.                Weight          =   400
  148.                Underline       =   0   'False
  149.                Italic          =   0   'False
  150.                Strikethrough   =   0   'False
  151.             EndProperty
  152.             ForeColor       =   &H000000FF&
  153.             Height          =   240
  154.             Index           =   17
  155.             Left            =   1080
  156.             TabIndex        =   36
  157.             Top             =   2865
  158.             Width           =   1245
  159.          End
  160.          Begin VB.Label Label1 
  161.             AutoSize        =   -1  'True
  162.             Caption         =   "Chris Hoffman"
  163.             BeginProperty Font 
  164.                Name            =   "MS Sans Serif"
  165.                Size            =   9.75
  166.                Charset         =   0
  167.                Weight          =   400
  168.                Underline       =   0   'False
  169.                Italic          =   0   'False
  170.                Strikethrough   =   0   'False
  171.             EndProperty
  172.             ForeColor       =   &H00FFFFFF&
  173.             Height          =   240
  174.             Index           =   16
  175.             Left            =   1095
  176.             TabIndex        =   35
  177.             Top             =   2880
  178.             Width           =   1245
  179.          End
  180.          Begin VB.Label Label1 
  181.             AutoSize        =   -1  'True
  182.             Caption         =   "Contact:"
  183.             BeginProperty Font 
  184.                Name            =   "MS Sans Serif"
  185.                Size            =   9.75
  186.                Charset         =   0
  187.                Weight          =   700
  188.                Underline       =   0   'False
  189.                Italic          =   -1  'True
  190.                Strikethrough   =   0   'False
  191.             EndProperty
  192.             ForeColor       =   &H00808080&
  193.             Height          =   240
  194.             Index           =   15
  195.             Left            =   720
  196.             TabIndex        =   34
  197.             Top             =   2475
  198.             Width           =   960
  199.          End
  200.          Begin VB.Label Label1 
  201.             AutoSize        =   -1  'True
  202.             Caption         =   "Questions? Comments?"
  203.             BeginProperty Font 
  204.                Name            =   "MS Sans Serif"
  205.                Size            =   9.75
  206.                Charset         =   0
  207.                Weight          =   400
  208.                Underline       =   0   'False
  209.                Italic          =   0   'False
  210.                Strikethrough   =   0   'False
  211.             EndProperty
  212.             Height          =   240
  213.             Index           =   11
  214.             Left            =   720
  215.             TabIndex        =   32
  216.             Top             =   2040
  217.             Width           =   2115
  218.          End
  219.          Begin VB.Label Label1 
  220.             Caption         =   $"frmMain.frx":1F4A
  221.             BeginProperty Font 
  222.                Name            =   "MS Sans Serif"
  223.                Size            =   9.75
  224.                Charset         =   0
  225.                Weight          =   400
  226.                Underline       =   0   'False
  227.                Italic          =   0   'False
  228.                Strikethrough   =   0   'False
  229.             EndProperty
  230.             Height          =   1080
  231.             Index           =   14
  232.             Left            =   360
  233.             TabIndex        =   30
  234.             Top             =   840
  235.             Width           =   4695
  236.          End
  237.          Begin VB.Label Label1 
  238.             AutoSize        =   -1  'True
  239.             Caption         =   "STEP 4 (CREATION):"
  240.             BeginProperty Font 
  241.                Name            =   "MS Sans Serif"
  242.                Size            =   12
  243.                Charset         =   0
  244.                Weight          =   400
  245.                Underline       =   0   'False
  246.                Italic          =   0   'False
  247.                Strikethrough   =   0   'False
  248.             EndProperty
  249.             ForeColor       =   &H000000FF&
  250.             Height          =   300
  251.             Index           =   12
  252.             Left            =   240
  253.             TabIndex        =   29
  254.             Top             =   360
  255.             Width           =   2310
  256.          End
  257.       End
  258.       Begin VB.Frame fraWiz 
  259.          Caption         =   "3"
  260.          Height          =   3650
  261.          Index           =   3
  262.          Left            =   720
  263.          TabIndex        =   7
  264.          Top             =   1200
  265.          Width           =   5295
  266.          Begin VB.CheckBox chkPrj 
  267.             Caption         =   "Insert New *.RES into existing VB project?"
  268.             Height          =   255
  269.             Left            =   360
  270.             TabIndex        =   26
  271.             Top             =   840
  272.             Value           =   1  'Checked
  273.             Width           =   3495
  274.          End
  275.          Begin prjFormlessWizard.xpcmdbutton cmdPaths 
  276.             Height          =   255
  277.             Index           =   2
  278.             Left            =   4920
  279.             TabIndex        =   19
  280.             Top             =   2160
  281.             Width           =   255
  282.             _ExtentX        =   450
  283.             _ExtentY        =   450
  284.             Caption         =   "..."
  285.             BeginProperty Font {0BE35203-8F91-11CE-9DE3-00AA004BB851} 
  286.                Name            =   "MS Sans Serif"
  287.                Size            =   8.25
  288.                Charset         =   0
  289.                Weight          =   400
  290.                Underline       =   0   'False
  291.                Italic          =   0   'False
  292.                Strikethrough   =   0   'False
  293.             EndProperty
  294.          End
  295.          Begin VB.Label Label1 
  296.             BeginProperty Font 
  297.                Name            =   "MS Sans Serif"
  298.                Size            =   9.75
  299.                Charset         =   0
  300.                Weight          =   400
  301.                Underline       =   0   'False
  302.                Italic          =   0   'False
  303.                Strikethrough   =   0   'False
  304.             EndProperty
  305.             ForeColor       =   &H00808080&
  306.             Height          =   960
  307.             Index           =   10
  308.             Left            =   120
  309.             TabIndex        =   27
  310.             Top             =   2520
  311.             Visible         =   0   'False
  312.             Width           =   5055
  313.          End
  314.          Begin VB.Label Label1 
  315.             Caption         =   "   The new resource file will be located in the same path as the project file."
  316.             BeginProperty Font 
  317.                Name            =   "MS Sans Serif"
  318.                Size            =   9.75
  319.                Charset         =   0
  320.                Weight          =   400
  321.                Underline       =   0   'False
  322.                Italic          =   0   'False
  323.                Strikethrough   =   0   'False
  324.             EndProperty
  325.             ForeColor       =   &H00808080&
  326.             Height          =   600
  327.             Index           =   9
  328.             Left            =   360
  329.             TabIndex        =   25
  330.             Top             =   2880
  331.             Width           =   4575
  332.          End
  333.          Begin VB.Label Label1 
  334.             AutoSize        =   -1  'True
  335.             Caption         =   "FYI:"
  336.             BeginProperty Font 
  337.                Name            =   "MS Sans Serif"
  338.                Size            =   9.75
  339.                Charset         =   0
  340.                Weight          =   400
  341.                Underline       =   0   'False
  342.                Italic          =   0   'False
  343.                Strikethrough   =   0   'False
  344.             EndProperty
  345.             ForeColor       =   &H00808080&
  346.             Height          =   240
  347.             Index           =   8
  348.             Left            =   360
  349.             TabIndex        =   24
  350.             Top             =   2640
  351.             Width           =   345
  352.          End
  353.          Begin VB.Label Label1 
  354.             AutoSize        =   -1  'True
  355.             Caption         =   "STEP 3 (VB PROJECT):"
  356.             BeginProperty Font 
  357.                Name            =   "MS Sans Serif"
  358.                Size            =   12
  359.                Charset         =   0
  360.                Weight          =   400
  361.                Underline       =   0   'False
  362.                Italic          =   0   'False
  363.                Strikethrough   =   0   'False
  364.             EndProperty
  365.             ForeColor       =   &H000000FF&
  366.             Height          =   300
  367.             Index           =   7
  368.             Left            =   240
  369.             TabIndex        =   23
  370.             Top             =   360
  371.             Width           =   2565
  372.          End
  373.          Begin VB.Label Label1 
  374.             Caption         =   "   Now you need to pick the project that the new *.RES file will be inserted into."
  375.             BeginProperty Font 
  376.                Name            =   "MS Sans Serif"
  377.                Size            =   9.75
  378.                Charset         =   0
  379.                Weight          =   400
  380.                Underline       =   0   'False
  381.                Italic          =   0   'False
  382.                Strikethrough   =   0   'False
  383.             EndProperty
  384.             Height          =   600
  385.             Index           =   6
  386.             Left            =   360
  387.             TabIndex        =   22
  388.             Top             =   1320
  389.             Width           =   4695
  390.          End
  391.          Begin VB.Label lblPrjPath 
  392.             Alignment       =   2  'Center
  393.             Appearance      =   0  'Flat
  394.             BackColor       =   &H80000005&
  395.             BorderStyle     =   1  'Fixed Single
  396.             ForeColor       =   &H80000008&
  397.             Height          =   255
  398.             Left            =   240
  399.             TabIndex        =   20
  400.             Top             =   2160
  401.             Width           =   4575
  402.          End
  403.       End
  404.       Begin VB.Frame fraWiz 
  405.          Caption         =   "2"
  406.          Height          =   3495
  407.          Index           =   2
  408.          Left            =   600
  409.          TabIndex        =   6
  410.          Top             =   960
  411.          Width           =   5295
  412.          Begin VB.PictureBox picIcon 
  413.             Height          =   765
  414.             Left            =   2160
  415.             Picture         =   "frmMain.frx":2012
  416.             ScaleHeight     =   705
  417.             ScaleWidth      =   705
  418.             TabIndex        =   18
  419.             Top             =   1680
  420.             Width           =   765
  421.          End
  422.          Begin prjFormlessWizard.xpcmdbutton cmdPaths 
  423.             Height          =   255
  424.             Index           =   1
  425.             Left            =   4920
  426.             TabIndex        =   14
  427.             Top             =   2760
  428.             Width           =   255
  429.             _ExtentX        =   450
  430.             _ExtentY        =   450
  431.             Caption         =   "..."
  432.             BeginProperty Font {0BE35203-8F91-11CE-9DE3-00AA004BB851} 
  433.                Name            =   "MS Sans Serif"
  434.                Size            =   8.25
  435.                Charset         =   0
  436.                Weight          =   400
  437.                Underline       =   0   'False
  438.                Italic          =   0   'False
  439.                Strikethrough   =   0   'False
  440.             EndProperty
  441.          End
  442.          Begin VB.Label Label1 
  443.             AutoSize        =   -1  'True
  444.             Caption         =   "STEP 2 (ICON):"
  445.             BeginProperty Font 
  446.                Name            =   "MS Sans Serif"
  447.                Size            =   12
  448.                Charset         =   0
  449.                Weight          =   400
  450.                Underline       =   0   'False
  451.                Italic          =   0   'False
  452.                Strikethrough   =   0   'False
  453.             EndProperty
  454.             ForeColor       =   &H000000FF&
  455.             Height          =   300
  456.             Index           =   5
  457.             Left            =   240
  458.             TabIndex        =   17
  459.             Top             =   360
  460.             Width           =   1665
  461.          End
  462.          Begin VB.Label Label1 
  463.             Caption         =   "   Now you need to pick the icon that you would like to use for the resource file / project."
  464.             BeginProperty Font 
  465.                Name            =   "MS Sans Serif"
  466.                Size            =   9.75
  467.                Charset         =   0
  468.                Weight          =   400
  469.                Underline       =   0   'False
  470.                Italic          =   0   'False
  471.                Strikethrough   =   0   'False
  472.             EndProperty
  473.             Height          =   600
  474.             Index           =   4
  475.             Left            =   360
  476.             TabIndex        =   16
  477.             Top             =   840
  478.             Width           =   4695
  479.          End
  480.          Begin VB.Label lblIcon 
  481.             Alignment       =   2  'Center
  482.             Appearance      =   0  'Flat
  483.             BackColor       =   &H80000005&
  484.             BorderStyle     =   1  'Fixed Single
  485.             ForeColor       =   &H80000008&
  486.             Height          =   255
  487.             Left            =   240
  488.             TabIndex        =   15
  489.             Top             =   2760
  490.             Width           =   4575
  491.          End
  492.       End
  493.       Begin VB.Frame fraWiz 
  494.          Caption         =   "1"
  495.          Height          =   3495
  496.          Index           =   1
  497.          Left            =   480
  498.          TabIndex        =   5
  499.          Top             =   720
  500.          Width           =   5295
  501.          Begin prjFormlessWizard.xpcmdbutton cmdPaths 
  502.             Height          =   255
  503.             Index           =   0
  504.             Left            =   4920
  505.             TabIndex        =   13
  506.             Top             =   2640
  507.             Width           =   255
  508.             _ExtentX        =   450
  509.             _ExtentY        =   450
  510.             Caption         =   "..."
  511.             BeginProperty Font {0BE35203-8F91-11CE-9DE3-00AA004BB851} 
  512.                Name            =   "MS Sans Serif"
  513.                Size            =   8.25
  514.                Charset         =   0
  515.                Weight          =   400
  516.                Underline       =   0   'False
  517.                Italic          =   0   'False
  518.                Strikethrough   =   0   'False
  519.             EndProperty
  520.          End
  521.          Begin prjFormlessWizard.xpcmdbutton cmdPaths 
  522.             Height          =   375
  523.             Index           =   3
  524.             Left            =   240
  525.             TabIndex        =   28
  526.             Top             =   3100
  527.             Width           =   4935
  528.             _ExtentX        =   8705
  529.             _ExtentY        =   661
  530.             Caption         =   "Extract RC.EXE and RCDLL.DLL To Apps Path."
  531.             BeginProperty Font {0BE35203-8F91-11CE-9DE3-00AA004BB851} 
  532.                Name            =   "MS Sans Serif"
  533.                Size            =   8.25
  534.                Charset         =   0
  535.                Weight          =   400
  536.                Underline       =   0   'False
  537.                Italic          =   0   'False
  538.                Strikethrough   =   0   'False
  539.             EndProperty
  540.          End
  541.          Begin VB.Label lblRC 
  542.             Alignment       =   2  'Center
  543.             Appearance      =   0  'Flat
  544.             BackColor       =   &H80000005&
  545.             BorderStyle     =   1  'Fixed Single
  546.             ForeColor       =   &H80000008&
  547.             Height          =   255
  548.             Left            =   240
  549.             TabIndex        =   12
  550.             Top             =   2640
  551.             Width           =   4575
  552.          End
  553.          Begin VB.Label Label1 
  554.             Caption         =   $"frmMain.frx":3D54
  555.             BeginProperty Font 
  556.                Name            =   "MS Sans Serif"
  557.                Size            =   9.75
  558.                Charset         =   0
  559.                Weight          =   400
  560.                Underline       =   0   'False
  561.                Italic          =   0   'False
  562.                Strikethrough   =   0   'False
  563.             EndProperty
  564.             Height          =   1680
  565.             Index           =   3
  566.             Left            =   360
  567.             TabIndex        =   11
  568.             Top             =   840
  569.             Width           =   4695
  570.          End
  571.          Begin VB.Label Label1 
  572.             AutoSize        =   -1  'True
  573.             Caption         =   "STEP 1 (COMPILER):"
  574.             BeginProperty Font 
  575.                Name            =   "MS Sans Serif"
  576.                Size            =   12
  577.                Charset         =   0
  578.                Weight          =   400
  579.                Underline       =   0   'False
  580.                Italic          =   0   'False
  581.                Strikethrough   =   0   'False
  582.             EndProperty
  583.             ForeColor       =   &H000000FF&
  584.             Height          =   300
  585.             Index           =   2
  586.             Left            =   240
  587.             TabIndex        =   10
  588.             Top             =   360
  589.             Width           =   2325
  590.          End
  591.       End
  592.    End
  593.    Begin prjFormlessWizard.xpcmdbutton cmdBut 
  594.       Height          =   495
  595.       Index           =   0
  596.       Left            =   3900
  597.       TabIndex        =   0
  598.       Top             =   5520
  599.       Width           =   855
  600.       _ExtentX        =   1508
  601.       _ExtentY        =   873
  602.       Caption         =   "<<"
  603.       BeginProperty Font {0BE35203-8F91-11CE-9DE3-00AA004BB851} 
  604.          Name            =   "MS Sans Serif"
  605.          Size            =   8.25
  606.          Charset         =   0
  607.          Weight          =   400
  608.          Underline       =   0   'False
  609.          Italic          =   0   'False
  610.          Strikethrough   =   0   'False
  611.       EndProperty
  612.    End
  613.    Begin prjFormlessWizard.xpcmdbutton cmdBut 
  614.       Height          =   495
  615.       Index           =   1
  616.       Left            =   4800
  617.       TabIndex        =   1
  618.       Top             =   5520
  619.       Width           =   855
  620.       _ExtentX        =   1508
  621.       _ExtentY        =   873
  622.       Caption         =   ">>"
  623.       BeginProperty Font {0BE35203-8F91-11CE-9DE3-00AA004BB851} 
  624.          Name            =   "MS Sans Serif"
  625.          Size            =   8.25
  626.          Charset         =   0
  627.          Weight          =   400
  628.          Underline       =   0   'False
  629.          Italic          =   0   'False
  630.          Strikethrough   =   0   'False
  631.       EndProperty
  632.    End
  633.    Begin prjFormlessWizard.xpcmdbutton cmdBut 
  634.       Height          =   495
  635.       Index           =   2
  636.       Left            =   165
  637.       TabIndex        =   3
  638.       Top             =   5520
  639.       Width           =   1320
  640.       _ExtentX        =   2328
  641.       _ExtentY        =   873
  642.       Caption         =   "Cancel"
  643.       BeginProperty Font {0BE35203-8F91-11CE-9DE3-00AA004BB851} 
  644.          Name            =   "MS Sans Serif"
  645.          Size            =   8.25
  646.          Charset         =   0
  647.          Weight          =   400
  648.          Underline       =   0   'False
  649.          Italic          =   0   'False
  650.          Strikethrough   =   0   'False
  651.       EndProperty
  652.    End
  653. Attribute VB_Name = "frmMain"
  654. Attribute VB_GlobalNameSpace = False
  655. Attribute VB_Creatable = False
  656. Attribute VB_PredeclaredId = True
  657. Attribute VB_Exposed = False
  658. Option Explicit
  659. '    cSoft Terms of Usage:
  660. '    By using this code, you agree to the following terms...
  661. '    1) You may use this code in your own programs
  662. '    (and may compile it into a program and distribute it
  663. '    in compiled format for langauges that allow it) freely and with no charge.
  664. '    2) If you do use this code for profit, an mention of the Author and
  665. '    Company name would be more than appreciated.
  666. '    3) You MAY NOT redistribute this code without written
  667. '    permission from the original author. Failure to do so is a violation of copyright laws.
  668. '    4) In Otherwords, Don't Screw ME! It isn't necessary,
  669. '    Im just looking for a LIL Recognition, Wouldn't you?
  670. '    Copyright:        
  671.  2000 cSoft.
  672. '    AUTHOR:           Chris Hoffman, cSoft
  673. '    AUTHORS EMAIL:    tech@ets4u.com
  674. '    AUTHORS WEBSITE:  http://www.ets4u.com
  675. '        Project Type:  Programmers Utility
  676. '        What does this Prj Do?
  677. '                       Real simple, ever notice that after you have created
  678. '                       that aswesome EXE or ActiveX EXE or any kind of FORMLESS prj,
  679. '                       that when compiled it uses the DEFAULT VB ICON!!
  680. '                       How shitty!, This app encomposes the RC.EXE file that
  681. '                       is included with Vis Studio Enterprise edition
  682. '                       (Although Im sure its a free D/L womewhere :O)
  683. '                       It Creates, Inserts an RES file to your specified
  684. '                       Prj, so that when you COMPILE the prj it will use the
  685. '                       ICON that you choose! No more Defaults!
  686. '        Dependents  :  You need RC.EXE, however I have
  687. '                       included them in the RES file, which can
  688. '                       be extracted automatically by the wizard.
  689. '        References  :  na
  690. '        Thanx Too   :  VB ACCELERATOR, This is where i figured
  691. '                       this out, then i built this app to make it a lil easier.
  692. '        FUTURE PLANS:  none
  693. '   Wizard Cls
  694. Private WithEvents cWiz As CWizard
  695. Attribute cWiz.VB_VarHelpID = -1
  696. Private cFile As clsFileAPI
  697. Private m_Last As Boolean
  698. Private m_UsePrj As Boolean
  699. Private Sub Form_Load()
  700. '   Frm Specific stuff
  701.     Call InitGUI
  702.     Call InitWiz(True)
  703.     m_UsePrj = True
  704.     Call FindRCEXE
  705. End Sub
  706. Private Sub Form_QueryUnload(Cancel As Integer, UnloadMode As Integer)
  707. '   CleanUp
  708.     Call InitWiz(False)
  709. End Sub
  710. Private Sub cmdBut_Click(Index As Integer)
  711.     Select Case Index
  712.         '
  713.         '   Back
  714.         Case 0:  cWiz.MoveBack: If Not m_Last Then cmdBut(1).Enabled = True
  715.         '
  716.         '   Forward
  717.         Case 1: cWiz.MoveNext: If m_Last Then cmdBut(1).Enabled = False
  718.         '
  719.         '   Cancel and Unload
  720.         Case 2: Unload Me
  721.     End Select
  722. End Sub
  723. Private Sub cmdPaths_Click(Index As Integer)
  724. '   Paths and such
  725.     '   Proc Vars
  726.     Dim sFile As String
  727.     Select Case Index
  728.         Case 0
  729.             '
  730.             '   Location of RC.EXE
  731.             If VBGetOpenFileName( _
  732.                 sFile, , , , , , _
  733.                 "Resource Compiler (*.EXE)|*.EXE|Executables (*.EXE)|*.EXE)", _
  734.                 1, , "Choose Your RC.EXE File", "EXE", Me.hWnd _
  735.                 ) Then
  736.                 lblRC.Tag = sFile
  737.                 Debug.Print lblRC.Tag
  738.                 lblRC.ToolTipText = sFile
  739.                 lblRC.Caption = sFile
  740.                 lblRC.Caption = CompactedPathSh( _
  741.                     sFile, lblRC.Width \ Screen.TwipsPerPixelX - 20, Me.hDC)
  742.             End If
  743.         Case 1
  744.             '
  745.             '   Specified Icon
  746.             If VBGetOpenFileName( _
  747.                 sFile, , , , , , _
  748.                 "Res ICON (*.ICO)|*.ICO|Icon Files", _
  749.                 1, , "Choose Your ICON File", "ICO", Me.hWnd _
  750.                 ) Then
  751.                 lblIcon.Tag = sFile
  752.                 Debug.Print lblIcon.Tag
  753.                 lblIcon.ToolTipText = sFile
  754.                 lblIcon.Caption = CompactedPathSh( _
  755.                     sFile, lblIcon.Width \ Screen.TwipsPerPixelX - 20, Me.hDC)
  756.                 Set picIcon.Picture = LoadPicture(sFile)
  757.             End If
  758.         
  759.         Case 2
  760.             '
  761.             '   Specified Prj File
  762.             If m_UsePrj Then
  763.                 If VBGetOpenFileName( _
  764.                     sFile, , , , , , _
  765.                     "VB Prj File (*.VBP)|*.VBP|Visual Basic Project Files", _
  766.                     1, , "Choose your Project File", "VBP", Me.hWnd _
  767.                     ) Then
  768.                     lblPrjPath.Tag = sFile
  769.                     Debug.Print lblPrjPath.Tag
  770.                     lblPrjPath.ToolTipText = sFile
  771.                     lblPrjPath.Caption = CompactedPathSh( _
  772.                         sFile, lblPrjPath.Width \ Screen.TwipsPerPixelX - 20, Me.hDC)
  773.                 End If
  774.             Else
  775.                 '
  776.                 '   Saving to Res instead
  777.                 If VBGetSaveFileName(sFile, , , "VB RES File(*.RES|*.RES|Visual Basic Resource File", , , "Save to *.RES", "RES", Me.hWnd) Then
  778.                     lblPrjPath.Tag = sFile
  779.                     Debug.Print lblPrjPath.Tag
  780.                     lblPrjPath.ToolTipText = sFile
  781.                     lblPrjPath.Caption = CompactedPathSh( _
  782.                         sFile, lblPrjPath.Width \ Screen.TwipsPerPixelX - 20, Me.hDC)
  783.                 End If
  784.             End If
  785.             
  786.         Case 3
  787.             '
  788.             '   Extract the Included Rc files to apps path
  789.             '   This is an excellent (albeit dangerous piece of
  790.             '   Code, meaning there are assholes out there that
  791.             '   Would abuse this, (Extract and run a virus for example,
  792.             '   Dont be a dick, dont abuse it))
  793.             sFile = QS(App.Path)
  794.             If Not LoadDataIntoFile(101, sFile & "RC.EXE") And _
  795.                 Not LoadDataIntoFile(102, sFile & "RCDLL.DLL") Then
  796.                 
  797.                 MsgBox "Couldnt extract, Try finding the files at Microsoft"
  798.             Else
  799.                 cmdPaths(3).Enabled = False
  800.                 lblRC.Tag = sFile & "RC.EXE"
  801.                 Debug.Print lblRC.Tag
  802.                 lblRC.ToolTipText = sFile & "RC.EXE"
  803.                 lblRC.Caption = CompactedPathSh( _
  804.                         sFile & "RC.EXE", lblRC.Width \ Screen.TwipsPerPixelX - 20, Me.hDC)
  805.             End If
  806.         
  807.         Case 4: Call CreatRC
  808.         
  809.     End Select
  810. End Sub
  811. Private Sub chkPrj_Click()
  812. '   If user wants to use an exisitng Prj
  813. '   Or maybe just create a res for later use.
  814.     m_UsePrj = chkPrj.Value
  815.     Label1(10).Visible = Not m_UsePrj
  816.     If m_UsePrj Then
  817.         Label1(6).Caption = "   Now you need to pick the project that the new *.RES file will be inserted into."
  818.     Else
  819.         Label1(6).Caption = " Ok, Since not using an Project, then you need to specify where you want to save the New *.Res file."
  820.     End If
  821. End Sub
  822. Private Sub InitWiz( _
  823.     bLoad As Boolean _
  824. '   cWiz Stuff
  825.     If bLoad Then
  826.         '
  827.         '   Create
  828.         Set cWiz = New CWizard
  829.         '
  830.         '   Frame count
  831.         cWiz.StepCount = fraWiz.Count
  832.         cWiz.Step = 0
  833.     Else
  834.         '
  835.         '   Clean Up
  836.         Set cWiz = Nothing
  837.     End If
  838. End Sub
  839. Private Sub cWiz_DisplayStep()
  840.     '
  841.     '   Placement, Zorder
  842.     fraWiz(cWiz.Step).ZOrder 0
  843.     If cWiz.Step = fraWiz.Count - 1 Then _
  844.         m_Last = True Else m_Last = False
  845. End Sub
  846. Private Sub InitGUI( _
  847. '   Placement of frames,Buttons etc.
  848.     '   Proc Vars
  849.     Dim i As Byte
  850.     '
  851.     '   Frm
  852.     Me.Width = 5910
  853.     Me.Height = 5200
  854.     '
  855.     '   Main Frame (Container)
  856.     fraMain.left = 143
  857.     fraMain.top = 120
  858.     fraMain.Width = 5535
  859.     fraMain.Height = 3855
  860.     '
  861.     '   fraWiz Frames
  862.     For i = 0 To fraWiz.Count - 1
  863.         '
  864.         '   Fewer Commands so...
  865.         On Error Resume Next
  866.         fraWiz(i).BorderStyle = 0
  867.         fraWiz(i).left = 120
  868.         fraWiz(i).top = 120
  869.         fraWiz(i).Height = 3650
  870.         fraWiz(i).Width = 5295
  871.         '
  872.         '   cmd's
  873.         cmdBut(i).top = 4080
  874.     Next i
  875. End Sub
  876. Private Sub FindRCEXE( _
  877. '   If its not in the default path
  878. '   Then we need to enable the browse button
  879.     If QualifyPath("C:\Program Files\Microsoft Visual Studio\VB98\Wizards\rc.exe") Then
  880.         Label1(3).Caption = "Your RC.EXE has been found. No need to locate it."
  881.         lblRC.Tag = "C:\Program Files\Microsoft Visual Studio\VB98\Wizards\rc.exe"
  882.         lblRC.ToolTipText = "C:\Program Files\Microsoft Visual Studio\VB98\Wizards\rc.exe"
  883.         lblRC.Caption = CompactedPathSh( _
  884.                 "C:\Program Files\Microsoft Visual Studio\VB98\Wizards\rc.exe", _
  885.                 lblRC.Width \ Screen.TwipsPerPixelX - 20, Me.hDC)
  886.         cmdPaths(3).Enabled = False
  887.         cmdPaths(0).Enabled = False
  888.         
  889.     Else
  890.         cmdPaths(0).Enabled = True
  891.         cmdPaths(3).Enabled = True
  892.         Label1(3).Caption = "   We need to locate your resource compiler, " & _
  893.             " Usually this is found in the Wizards folder of your of your" & _
  894.             " VB98 folder. The file we are looking for is, ""RC.EXE"". It would" & _
  895.             " seem that RC.EXE only comes with the Enterprise edition of VB," & _
  896.             " Ive packed it into this program, If you dont have it, click the" & _
  897.             " Extract button to save the required files to this apps path."
  898.         lblRC.Caption = vbNullString
  899.     End If
  900. End Sub
  901. Private Sub CreatRC( _
  902. '   Create the *.RC File for *.RES
  903.     '
  904.     '   Note, I opted to copy Each file to the Root of
  905.     '   The C drive... Why? rather than deal with DOS
  906.     '   Paths, RC.EXE only works with DOS paths, This seems a bit easier)
  907.     '
  908.     '   Proc Vars
  909.     Dim lRet As Double
  910.     Dim lCount As Double
  911.     Dim lRetry As Long
  912.     Dim sTmp As String
  913.     Dim tmpA() As String
  914.     Dim lB As Long
  915.     Dim UB As Long
  916.     Dim i As Long
  917.     Dim bFound As Boolean
  918.     On Error GoTo ER
  919.     '
  920.     '   Show Busy, althought if all goes well
  921.     '   This shouldnt take more than a few MS
  922.     Me.MousePointer = vbHourglass
  923.     '
  924.     '   Init cls
  925.     Set cFile = New clsFileAPI
  926.     cFile.OpenAPI "c:\tmp.rc"
  927.     '
  928.     '   ZERO tells VB that this ICON will be the APPS Icon
  929.     cFile.WriteAPI "0   ICON   MOVEABLE   PRELOAD   c:\tmp.ico"
  930.     Set cFile = Nothing
  931.     '
  932.     '   Copy Icon
  933.     FileCopy lblIcon.Tag, "c:\tmp.ico"
  934.     '
  935.     '   Make the Actual RES
  936.     lRet = Shell(lblRC.Tag & " /r /fo c:\tmp.res c:\tmp.rc", vbNormalFocus)
  937.     '
  938.     '   Since the Process of making seems to take a bit
  939.     '   (Sometimes, im just putting in a loop so to WAIT)
  940.     Do Until lRet <> 0
  941.         '
  942.         '   So not too loop forever
  943.         lCount = lCount + 1
  944.         DoEvents
  945.     Loop
  946.     '
  947.     '   If user just wants to MAKE the file
  948.     '   And NOT insert it into there project.
  949.     If Not m_UsePrj Then
  950.         FileCopy "c:\tmp.res", lblPrjPath.Tag
  951.     Else
  952.         '
  953.         '   Path Only
  954.         sTmp = ParsePath(lblPrjPath.Tag)
  955.         FileCopy "c:\tmp.res", QS(sTmp) & "PRJ.RES"
  956.         '
  957.         '   Init New Cls
  958.         Set cFile = New clsFileAPI
  959.         sTmp = ParseFileName(lblPrjPath.Tag)
  960.         cFile.OpenAPI lblPrjPath.Tag
  961.         '
  962.         '   Read the Contents and fill our Var
  963.         cFile.ReadAPI sTmp
  964.         '
  965.         '   VB6+ Only
  966.         tmpA = Split(sTmp, vbCrLf)
  967.         lB = LBound(tmpA)
  968.         UB = UBound(tmpA)
  969.         '
  970.         '   Loop and fill
  971.         For i = lB To UB - 1
  972.             '
  973.             '   If the user has specified an RES already
  974.             '   Then we will replace the Entry, but NOT
  975.             '   Delete there Original RES file.
  976.             If InStr(1, LCase(tmpA(i)), "resfile32") <> 0 Then
  977.                 tmpA(i) = "ResFile32=""PRJ.RES"""
  978.                 '
  979.                 '   Set Flag
  980.                 bFound = True
  981.             End If
  982.         Next i
  983.         '
  984.         '   Close is important, although the class Terminate
  985.         '   Does this, its just a good habbit to get into.
  986.         cFile.CloseAPI
  987.         If bFound Then
  988.             '
  989.             '   Join the array element to element
  990.             sTmp = Join(tmpA, vbCrLf)
  991.         Else
  992.             '
  993.             '   Didnt find an existing so we will
  994.             '   Just put the new entry at top of file.
  995.             sTmp = "ResFile32=""PRJ.RES""" & vbCrLf & Join(tmpA, vbCrLf)
  996.         End If
  997.         '
  998.         '   Kill the Orig Prj File
  999.         Kill lblPrjPath.Tag
  1000.         '
  1001.         '   Create the New
  1002.         cFile.OpenAPI lblPrjPath.Tag
  1003.         '
  1004.         '   Fill it
  1005.         cFile.WriteAPI sTmp
  1006.         '
  1007.         '   Again, close
  1008.         cFile.CloseAPI
  1009.     End If
  1010.     '
  1011.     '   Clean Up class
  1012.     If Not cFile Is Nothing Then Set cFile = Nothing
  1013.     '
  1014.     '   Clean up our Tmp files
  1015.     Kill "c:\tmp.rc"
  1016.     Kill "c:\tmp.ico"
  1017.     Kill "c:\tmp.res"
  1018.     '
  1019.     '   Reset Mouse
  1020.     Me.MousePointer = vbNormal
  1021.     '
  1022.     '   Jet if all is well!
  1023.     Exit Sub
  1024.     '
  1025.     '   1000? excesive? seems ok to me
  1026.     lRetry = lRetry + 1
  1027.     If lRetry > 1000 Then
  1028.         MsgBox "Error has occured, please check your paths?"
  1029.     Else
  1030.         Resume
  1031.     End If
  1032.     Me.MousePointer = vbNormal
  1033. End Sub
  1034.